# -*- coding: utf-8 -*-
import json

with open(r'G:\ml2021\Lhy_Machine_Learning\08 Explainable AI&Adversarial Attack\作业HW7&8\hw7_bert.ipynb', 'r', encoding='utf-8') as f:
    text = json.load(f)

for x in text['cells']:
    if x.get('cell_type') == 'code':
        for y in x.get('source'):
            print(y)
